package com.itheima.sh.d;

public class CalculatorDemo {
    public static void main(String[] args) {
        /*useCalculator(new Calculator() {
            @Override
            public int calc(int a) {
                return 0;
            }
        });*/

        //简化
        useCalculator(a -> 0);
    }
    public static void useCalculator(Calculator c){
        c.calc(6);
    }
}
